package com.bw.parkingspace_module.parking

import com.bw.parkingspace_module.parking.entity.ParkingValueEntity
import com.kf.common.entity.BaseEntity
import com.kf.common.mvi.model.BaseModel
import com.kf.lib_network.retrofit.HttpType
import com.kf.lib_network.retrofit.RetrofitFactory
import kotlinx.coroutines.flow.Flow

class ParkingModel : BaseModel() {

    fun requestParkingAll(): Flow<BaseEntity<List<ParkingValueEntity>>> {
        return RetrofitFactory().createRetrofit(HttpType.TOKEN)
            .create(ApiService::class.java)
            .requestParkingAll()
    }

}